home *** CD-ROM | disk | FTP | other *** search
- Path: cyberoptics.com!usenet
- From: Greg Parks <gparks@cyberoptics.com>
- Newsgroups: comp.lang.c++
- Subject: Template class output is ambigous
- Date: 19 Feb 1996 20:58:36 GMT
- Organization: CyberOptics Corporation
- Message-ID: <4gao9s$553@hagar.cyberoptics.com>
- NNTP-Posting-Host: jafar.cyberoptics.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.2N (Windows; I; 32bit)
-
- I have a Template class Tuple and a derived class Vector, both
- have defined the insertion operator. Now I have an array of
- Vector<double> and I want to output an element.
- cout << mark[x];
- But this gives me an 'abiguous operator' error in VC++ 4.0.
- Why? The help says to cast in order to aboid this, but it
- doesn't work. What's up with that? Is this a bug? Is there a
- workaround? Am I doing something wrong?
-
-